﻿using MediatR;
using System.ComponentModel.DataAnnotations;
using static T.Materials.Domain.Enum.Enums;

namespace T.Materials.API.Application.Command.MaterialStoreCommand
{
    /// <summary>
    /// 物资领用审批命令
    /// </summary>
    public class MaterialApprovalCommand : IRequest<int>
    {
        /// <summary>
        /// 物资与入库ID
        /// </summary>
        public int MaterialStoreId { get; set; }

        /// <summary>
        /// 公司ID全球唯一标识符
        /// </summary>
        public string? CompanyID { get; set; }

        /// <summary>
        /// 用户ID
        /// </summary>
        public int User_Id { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreatedBy { get; set; }

        /// <summary>
        /// 审批状态
        /// </summary>
        public ApprovalStatus ApprovalStatus { get; set; }

        /// <summary>
        /// 物资分类(1、采购 2、入库)
        /// </summary>
        public int? MaterialClassificat { get; set; }

        /// <summary>
        /// 审批人
        /// </summary>
        public string? Approver { get; set; }
    }
}
